package com.farm.bpm.form;

import java.util.Map;

public class Field {
	public enum HTML_TYPE {
		TEXT, TEXTAREA, SELECT;
	}

	protected HTML_TYPE htmlType;
	protected int formWidth;
	protected boolean required;
	protected boolean read;
	protected boolean write;
	protected String title;
	protected String cssClass;
	protected String validType;
	protected String id;
	protected String name;
	protected String value;
	protected String fielsHtmlEdit;
	protected String fielsHtmlView;
	protected Map<String, String> enums;

	public HTML_TYPE getHtmlType() {
		return htmlType;
	}

	protected void setHtmlType(HTML_TYPE htmlType) {
		this.htmlType = htmlType;
	}

	public int getFormWidth() {
		return formWidth;
	}

	protected void setFormWidth(int formWidth) {
		this.formWidth = formWidth;
	}

	public boolean isRequired() {
		return required;
	}

	protected void setRequired(boolean required) {
		this.required = required;
	}

	public boolean isRead() {
		return read;
	}

	protected void setRead(boolean read) {
		this.read = read;
	}

	public boolean isWrite() {
		return write;
	}

	protected void setWrite(boolean write) {
		this.write = write;
	}

	public String getTitle() {
		return title;
	}

	protected void setTitle(String title) {
		this.title = title;
	}

	public String getCssClass() {
		return cssClass;
	}

	protected void setCssClass(String cssClass) {
		this.cssClass = cssClass;
	}

	public String getValidType() {
		return validType;
	}

	protected void setValidType(String validType) {
		this.validType = validType;
	}

	public String getId() {
		return id;
	}

	protected void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	protected void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	protected void setValue(String value) {
		this.value = value;
	}

	public String getFielsHtmlEdit() {
		return fielsHtmlEdit;
	}

	public void setFielsHtmlEdit(String fielsHtmlEdit) {
		this.fielsHtmlEdit = fielsHtmlEdit;
	}

	
	public String getFielsHtmlView() {
		return fielsHtmlView;
	}

	public void setFielsHtmlView(String fielsHtmlView) {
		this.fielsHtmlView = fielsHtmlView;
	}

	public Map<String, String> getEnums() {
		return enums;
	}

	public void setEnums(Map<String, String> enums) {
		this.enums = enums;
	}
	

}
